package org.kgc.alanhealth.service.impl;

import org.kgc.alanhealth.entity.HospitalDepartment;
import org.kgc.alanhealth.mapper.HospitalDepartmentMapper;
import org.kgc.alanhealth.service.HospitalDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class HospitalDepartmentServiceImpl implements HospitalDepartmentService {

    private final HospitalDepartmentMapper hospitalDepartmentMapper;

    @Autowired
    public HospitalDepartmentServiceImpl(HospitalDepartmentMapper hospitalDepartmentMapper) {
        this.hospitalDepartmentMapper = hospitalDepartmentMapper;
    }

    @Override
    public List<HospitalDepartment> findAll() {
        return hospitalDepartmentMapper.findAll();
    }
}